package com.lyz.javabean;

/**
 * @ClassName Student
 * @Description 学生类（实体类 Javabean）
 * @Author 2214361854
 * @Date 2022/2/12 21:48
 * @Version 1.0
 */
public class Student {
    private String name;
    private char sex;
    private String hobby;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public void study(){
        System.out.println("名字："+name+"，性别："+sex+"，爱好："+hobby);
    }
}
